package com.personal.Visualplan.controller;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.personal.Visualplan.entity.User;
import com.personal.Visualplan.service.UserService;

/**
 * 
 * @author "ChenJing"
 * @version 1.0
 * @date 2020年3月2日 下午10:29:15
 * @description 该类为操作用户的Controller，包括用户注冊
 *
 */
@RestController
@RequestMapping("/user")
public class UserOperatController {

	@Resource
	private UserService userService;

	@RequestMapping(value = "/register")
	public User userRegister(String userId) {
		User user = new User();
		user.setUserId(userId);
		return userService.userRegister(user);
	}

}
